package com.lh.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("department_info")
public class DepartmentInfo {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

     @TableField("department_code")
    private String departmentCode;

     @TableField("department_name")
    private String departmentName;

     @TableField("parent_code")
    private String parentCode;

     @TableField("parent_name")
    private String parentName;

     @TableField("area_code")
    private String areaCode;

    @TableField("remark")
    private String remark;

     @TableField("area_name")
    private String areaName;

    @TableField("city_name")
    private String cityName;

    @TableField("city_phone")
    private String cityPhone;

    @TableField("secretary_name")
    private String secretaryName;

    @TableField("secretary_phone")
    private String secretaryPhone;


    @TableField(exist = false)
    private List<DepartmentInfo> children;
}
